import QtQuick 1.0
import com.nokia.symbian 1.1

ListItem {
    id: root

    property alias titleText: title.text
    property alias subtitleText: subtitle.text
    property alias iconSource: image.source

    platformInverted: true

    Item {
        anchors.fill: parent
        anchors.leftMargin: platformStyle.paddingMedium
        anchors.rightMargin: platformStyle.paddingMedium
        Column {
            anchors.verticalCenter: parent.verticalCenter
            width: parent.width - image.width

            ListItemText {
                id: title
                width: parent.width
                elide: Text.ElideRight
                platformInverted: root.platformInverted
                mode: root.mode
                role: "Title"
            }
            ListItemText {
                id: subtitle
                width: parent.width
                elide: Text.ElideRight
                platformInverted: root.platformInverted
                mode: root.mode
                role: "SubTitle"
            }
        }
        Image {
            id: image
            anchors.verticalCenter: parent.verticalCenter
            anchors.right: parent.right
        }
    }
}
